package com.itheima.health.utils.demo;

import java.util.Timer;
import java.util.TimerTask;

public class TaskTimeDemo {
    //jdk 任务调度 springboot   xxl-job
    public static void main(String[] args) {

        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("打印了");
            }
        },3000,5000) ;//第一次延迟3秒,每隔5秒

    }


}
